var app = getApp()

Component({
  data: {
    // Drawer选择排序
    drawerSidebar: [{
        title: '发布时间倒序',
        value: 'publishtimedesc',
        icon: "circle",
      },
      {
        title: '发布时间正序',
        value: 'publishtimeasc',
        icon: 'circle',
      },
      {
        title: '添加时间倒序',
        value: 'createtimedesc',
        icon: "circle",
      },
      {
        title: '添加时间正序',
        value: 'createtimeasc',
        icon: "circle",
      },
      {
        title: '喜欢数正序',
        value: 'diggcountasc',
        icon: "circle",
      },
      {
        title: '喜欢数倒序',
        value: 'diggcountdesc',
        icon: "circle",
      },
      {
        title: '评论数正序',
        value: 'commentasc',
        icon: "circle",
      },
      {
        title: '评论数倒序',
        value: 'commentdesc',
        icon: "circle",
      },
      {
        title: '分享数正序',
        value: 'shareasc',
        icon: "circle",
      },
      {
        title: '分享数倒序',
        value: 'sharedesc',
        icon: "circle",
      },
    ],
    drawerVisible: false, // 是否打开排序弹窗
    drawerOrder: {}, // 页面排序信息
  },
  properties: {

  },

  ready() {

  },

  methods: {

    // 打开排序弹窗
    handleOpenDrawPX() {
      this.setData({
        drawerVisible: true,
      })
    },

  }

});